<%def name="change_list_results(cl, result_headers, results)" >

% if results:

<table cellspacing="0" id="results_list">
<thead>
<tr>

% for header in result_headers:
<th${header['class_attrib'] if 'class_attrib' in header else ''}>

% if 'sortable' in header and header['sortable']:
<a href="${header['url']}">
% endif

${header['text']|capfirst}

% if 'sortable' in header and header['sortable']:
</a>
% endif
</th>
% endfor

</tr>
</thead>
<tbody>

% for num,result in enumerate(results):

<tr class="${'row2' if num%2 else 'row1'}">
% for item in result:
${item}
% endfor
</tr>

% endfor

</tbody>
</table>

% endif

</%def>
